﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BesAsm.Emgaats.Core;
using BesAsm.Emgaats.Core.Commands;

namespace BesAsm.Emgaats.ModelBuilder.Commands
{
  public class DeployHydrologyCommand : SingleCommand
  {
    private Model _model;
    private HydrologyBuilder _hydrologyBuilder;

    public DeployHydrologyCommand(Model model)
    {
      _model = model;
      _hydrologyBuilder = new HydrologyBuilder(_model);
    }

    #region IEmgaatsExtensionCommand Members

    public override void Execute()
    {
      base.Execute();
      _hydrologyBuilder.DeployHydrology();
    }

    public override void Undo()
    {
      throw new NotImplementedException();
    }

    public override string Name
    {
      get { return "Deploy hydrology file"; }
    }

    public override string Description
    {
      get { return "Calculates and creates a hydrology model engine file"; }
    }

    #endregion
  }
}
